<%@page import="com.web.new12306.pojo.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta content="text/html; charset=utf-8">
<title>修改个人信息</title>
	<link rel="stylesheet" type="text/css" href="js/util/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="js/util/easyui/themes/icon.css">
	
	<script type="text/javascript" src="js/util/jquery/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="js/util/easyui/jquery.easyui.min.js"></script>
	
	<script type="text/javascript" src="js/index/update.js"></script>
</head>
<body >
  <form method="post" action="http://localhost:8080/new12306/updatePersonServlet">
	<input type="hidden" name="id" value="${user.id}">
		<h2><center>用户信息</center></h2>
    	<div style="margin-left:300px">
    		<div class="easyui-panel" title="Personinformation and update" style="width:100%;max-width:700px;padding:30px 60px;">
    			<table>
		          <tr>
		             <td class="text_cray1">登录名：</td>
		             <td class="text_cray1"> 
		             	<input name="username" class="easyui-validatebox tb" value="${user.username}">
		             </td>
                  </tr>
                  <tr>
                     <td class="text_cray1">真实姓名：</td>
                     <td>
                        <input class="easyui-textbox" name="realname" value="${user.realname}">
                     </td>
                  </tr>
                  <tr>
                     <td class="text_cray1">性别：</td>
                     <td class="text_cray1">
                       <span class="mr25">
                         <input type="radio" name="sex" value="男" class="sex" checked="checked">
                       </span>
                       <span class="text_cray">
                         <label>男</label>
                         <input type="radio" name="sex" value="女"   class="sex"/>
                         <label>女</label>
                       </span>
                     </td>
                  </tr>
                  <tr>
                     <td class="text_cray1">省份：</td>
                     <td align="left">
                        <select name="province" class="text_cray" id="province">
                           <option value="省份" selected="selected">省份</option>
                        </select>
                     </td>
                     <td class="text_cray">城市：</td>
                     <td class="text_cray">
                        <select name="city" class="text_cray" id="city">
                        <option value="城市" selected="selected">市县</option>
                        </select>
                     </td>
                 </tr>          
                 <tr>
                    <td class="text_cray1">证件类型：</td>
                    <td>
                       <select class="easyui-combobox" name="cardtype" >
                         <option value="二代身份证">二代身份证</option>
                         <option value="港澳通行证">港澳通行证</option>
                         <option value="护照">护照</option>
                       </select>	
                    </td>
                  </tr>
                  <tr>
                     <td class="text_cray1">证件号码：</td>
                     <td>
                        <input class="easyui-textbox" name="cardid" value="${user.cardId}">
                     </td>
                  </tr>
                  <tr>
                  	 <td class="text_cray1">旅客类型：</td>
                  	 <td>
                        <select class="easyui-combobox" name="type">
                      		<option value="成人">成人</option>
                     		<option value="儿童">儿童</option>
                      		<option value="学生">学生</option>
                      		<option value="残疾军人、伤残人民警察">残疾军人、伤残人民警察</option>
                  		</select>	
                  	 </td>
                  </tr> 
          	  </table>
          <div>
             <input type="submit" value="修改">
             <input type="button" onclick="window.location.href='frontstage.html'" value="返回">
          </div>
    </div>
</div>
</form>
	<script type="text/JavaScript" src="js/index/city.js"></script>
</body>
</html>